function DroidSelection() {
  this.xLeft;
  this.xRight;
  this.yTop;
  this.yBottom;
  this.CORNER_WIDTH = 5;
  this.CORNER_LINE_WIDTH = 2;
  this.LINE_WIDTH = 1;
  this.HEIGHT = 32;
  this.WIDTH = this.HEIGHT;
  this.XOFF = -8;
  this.YOFF = -4;

  this.setPosition = function(x, y) {
    this.xLeft = x + this.XOFF;
    this.xRight = this.xLeft + this.WIDTH;
    this.yTop = y + this.YOFF;
    this.yBottom = this.yTop + this.HEIGHT;
  };

  this.draw = function(ctx) {
    ctx.lineWidth = this.LINE_WIDTH;
    ctx.strokeStyle = "rgba(200,200,200,0.5)";
    ctx.strokeRect(this.xLeft, this.yTop, this.WIDTH, this.HEIGHT);

    ctx.lineWidth = this.CORNER_LINE_WIDTH;
    ctx.strokeStyle = "#a4ca39";
    ctx.beginPath();

    ctx.moveTo(this.xLeft, this.yTop);
    ctx.lineTo(this.xLeft + this.CORNER_WIDTH, this.yTop);
    ctx.moveTo(this.xLeft, this.yTop);
    ctx.lineTo(this.xLeft, this.yTop + this.CORNER_WIDTH);

    ctx.moveTo(this.xRight, this.yTop);
    ctx.lineTo(this.xRight - this.CORNER_WIDTH, this.yTop);
    ctx.moveTo(this.xRight, this.yTop);
    ctx.lineTo(this.xRight, this.yTop + this.CORNER_WIDTH);

    ctx.moveTo(this.xLeft, this.yBottom);
    ctx.lineTo(this.xLeft + this.CORNER_WIDTH, this.yBottom);
    ctx.moveTo(this.xLeft, this.yBottom);
    ctx.lineTo(this.xLeft, this.yBottom - this.CORNER_WIDTH);

    ctx.moveTo(this.xRight, this.yBottom);
    ctx.lineTo(this.xRight - this.CORNER_WIDTH, this.yBottom);
    ctx.moveTo(this.xRight, this.yBottom);
    ctx.lineTo(this.xRight, this.yBottom - this.CORNER_WIDTH);
    ctx.stroke();
  };

  this.clear = function(ctx) {
    //ctx.clearRect(this.xLeft - this.CORNER_LINE_WIDTH, this.yTop - this.CORNER_LINE_WIDTH, this.width + 2 * this.CORNER_LINE_WIDTH, this.height + 2 * this.CORNER_LINE_WIDTH);
    //TODO : Cleanup the clear size
    ctx.clearRect(this.xLeft - this.CORNER_LINE_WIDTH - 20, this.yTop - this.CORNER_LINE_WIDTH - 20, this.WIDTH + 40 * this.CORNER_LINE_WIDTH, this.HEIGHT + 40 * this.CORNER_LINE_WIDTH);
  };
};
